package org.springframework.samples.mvc.employee;

import java.util.ArrayList;
import java.util.List;

public class EmployeeModel {
    private List<Employee> employees;
    
    public EmployeeModel(){
    	employees = new ArrayList<Employee>();
    }

	public void setEmployees(List<Employee> employees) {
		this.employees = employees;
	}

	public List<Employee> getEmployees() {
		return employees;
	}
	
	public void addEmployee(Employee employee){
		employees.add(employee);
	}
	
	public void deleteEmployee(int id){
		employees.remove(id);
	}
}
